<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<load href="__PUBLIC__/css/lwy2011.css" />
<load href="__PUBLIC__/Css/common.css" />
<style>
  span.tips{color:#666;}
</style>
<script type="text/javascript" src="__ROOT__/Public/Js/jquery-1.5.0.min.js"></script>
<script type="text/javascript" src="__ROOT__/Public/Js/core.js"></script>
<title>文章列表页</title>
<script>
function checkForm(opt){
   //alert('b');
   var flag=false;
   $(":checkbox").each(function () {
        if($(this).attr("checked")){
		  flag=true;
		  //break;
		  }
      });
   if(flag){
   if(opt='d')
   document.listForm.action="admin.php?s=SNSAdmin/delRecommend"
   document.listForm.submit();
   return false;
   }
   else {
     alert('未选择任何内容');
     return false;
   }
}
</script>
</head>
<body>

<div style="width:960px; margin:50px auto; text-align:center;">
   <layout name="Public:sns-header" cache="0" />
   <div style="width:80%; float:left; background-color:#FF9933">
  <form action="__URL__/recommendZoneFormSubmit" method="post" name="listForm" style="background-color:#FFFFFF">
    <table width="100%" border="0">
  <tr>
    <th width="16%">当前操作:&gt;&gt;</th>
    <th colspan="2" align="left"><?=empty($id)?'推荐位增加':'推荐位编辑'?></th>
    <th width="9%">&nbsp;</th>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td width="14%" align="left">名称：</td>
    <td width="61%" align="left"><label>
      <input type="text" name="name" value="{$item['name']}"/><span class="tips">推荐位置名称，必填</span>
    </label></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td align="left">链接：</td>
    <td align="left"><input type="text" name="url"  value="{$item['url']}" /><span class="tips">推荐位置的跳转地址，默认为空</span></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td align="left">备注：</td>
    <td align="left"><input type="text" name="remark"  value="{$item['remark']}" /><span class="tips">默认为空</span></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td align="left">&nbsp;</td>
    <td align="left">
	  <input type="hidden" name="id" value="{$id}" />
      <input type="submit" name="Submit" value="提交" />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="#" onclick="history.back();">返回</a>    </td>
    <td>&nbsp;</td>
  </tr>
</table>

  </form>
   </div>
</div>

</body>
</html>
